package com.dc.system.controller;

import com.dc.common.controller.BaseController;
import com.dc.common.model.BaseModel;
import com.dc.system.model.SysUser;
import com.dc.system.service.UserService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
* 用户controller
* */

@RequestMapping("system/user")
@RestController
public class UserController extends BaseController {

    @Autowired
    public UserService userService;

    @RequestMapping("login")
    public BaseModel<SysUser> login(SysUser user,BaseModel baseModel){

        return userService.login(user,baseModel);
    }
}
